// Package controllers 首页
package controllers

import (
	"ginmin/configs"
	"github.com/gin-gonic/gin"
	"net/http"
)

// IndexHome 首页
func IndexHome(ctx *gin.Context) {
	serverConfig := configs.GetServerConfig()
	ctx.HTML(http.StatusOK, "index/index.html", gin.H{
		"name":   serverConfig["Name"],
		"author": serverConfig["Author"],
		"ver":    serverConfig["Ver"],
	})
}
